package com.leanin.form.mapper;

import com.leanin.form.model.FollowFormVO;
import com.leanin.form.model.LeaninEduForm;
import com.leanin.form.model.LeaninFollowForm;
import com.leanin.form.model.request.FormQueryDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LeaninFollowFormMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LeaninFollowForm record);

    int insertSelective(LeaninFollowForm record);

    LeaninFollowForm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LeaninFollowForm record);

    int updateByPrimaryKeyWithBLOBs(LeaninFollowForm record);

    int updateByPrimaryKey(LeaninFollowForm record);

    List<LeaninFollowForm> selectByFormName(@Param("formName") String formName);

    List<FollowFormVO> findByParam(@Param("formQueryDTO") FormQueryDTO formQueryDTO);

    FollowFormVO findById(@Param("formId") Long formId);
}